home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Template / h / TempDefs
Encoding:
Text File  |  1995-07-08  |  3.0 KB  |  108 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Template.TempDefs.h
  12.     Author:  Copyright © 1992 Jason Williams
  13.              Thanks to John Winters for supplying the code that I hacked
  14.              changed, hacked, rewrote, and then wrote again from scratch!
  15.              Modified 19 May 1995 Julian Smith to avoid duplicated 
  16.              Window.TempDefs header file.
  17.              
  18.     Version: 1.12 (19 May 1995)
  19.     Purpose: Definitions and stuff for internal template routines
  20.  
  21.     NOTE:    If you make changes to this header you must also fix the
  22.              file Window.h.TempDefs, which is a duplicate of this file, and
  23.              is used by Window.c.ModeChange.
  24.              - Don't need to now...
  25. */
  26.  
  27. #ifndef __dl_tempdefs_h
  28. #define __dl_tempdefs_h
  29.  
  30. #include <stdlib.h>
  31. #include <stdio.h>
  32. #include <string.h>
  33.  
  34. #ifndef __dl_linklist_h
  35. #include "DeskLib:LinkList.h"
  36. #endif
  37.  
  38. #ifndef __dl_wimpswis_h
  39. #include "DeskLib:WimpSWIs.h"
  40. #endif
  41.  
  42. #ifndef __dl_error_h
  43. #include "DeskLib:Error.h"
  44. #endif
  45.  
  46. #ifndef __resource_h
  47. #include "DeskLib:Resource.h"
  48. #endif
  49.  
  50. #ifndef __dl_template_h
  51. #include "DeskLib:Template.h"
  52. #endif
  53.  
  54. #ifndef __dl_strlencr_h
  55. #include "DeskLib:StringCR.h"
  56. #endif
  57.  
  58. #ifndef __dl_sprite_h
  59. #include "DeskLib:Sprite.h"
  60. #endif
  61.  
  62. #define ERRBASE 1
  63. #define ERR1 ERRBASE+0
  64. #define ERRMESS1 "Not enough memory to copy template"
  65. #define ERR2 ERRBASE+1
  66. #define ERRMESS2 "Template '%s' not found"
  67. #define ERR3 ERRBASE+2
  68. #define ERRMESS3 "Not enough memory to load templates"
  69. #define ERR4 ERRBASE+3
  70. #define ERRMESS4 "Template file corrupt"
  71. #define ERR5 ERRBASE+4
  72. #define ERRMESS5 "Error reading template file"
  73. #define ERR6 ERRBASE+5
  74. #define ERRMESS6 "Can't find template body"
  75. #define ERR7 ERRBASE+6
  76. #define ERRMESS7 "Unable to find template file"
  77. #define ERR8 ERRBASE+7
  78. #define ERRMESS8 "Template file is empty"
  79.  
  80. #define HEADER_SIZE 16
  81. #define INDEX_SIZE  24
  82.        
  83.  
  84. /* The next few are now declared in Template.h 19 May 1995 Julian Smith */
  85. /*
  86. typedef struct
  87. {
  88.   linklist_header header;
  89.   char            identifier[wimp_MAXNAME + 1];
  90.   window_block    *windowdef;
  91.   int             dataoffset;
  92.   int             templatesize;    |* size of window+icons+indirect data *|
  93.   int             indirectsize;    |* size of expanded indirect data     *|
  94.   char            *indirectdata;
  95. } template_record;
  96.  
  97.  
  98. extern linklist_header template_list;
  99. extern font_array      *template_fontarray;
  100. */
  101.  
  102.  
  103. extern sprite_area __template_spritearea;
  104.  
  105. extern template_record *Template__FindTemplate(char *name);
  106.  
  107. #endif
  108.